<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js</title>
    <script>
        function  move() {
            var o=document.getElementById('box');
            console.log(o);
            o.style.display='none';
            o.style.marginLeft = '100px'
        }
    </script>
    <style>
        .box{
            width: 100px;
            height: 100px;
            background-color:lavenderblush;
        }
    </style>
</head>
<body>
    <div id="box" class="box"></div>
    <input type="button" value="点我" onclick="move()">

</body>
</html>